package model

import (
	"chitchat_http/util"
	"github.com/doujunyu/gogo/sql_aid"
)

const TableByChatMessageLog = "self_chat_message_log"

const ChatMessageLogByTypeIdFriend = 1//申请加好友
const ChatMessageLogByTypeIdGroup = 2//申请加入群


func ChatMessageLogToData(ids ...interface{})map[int64]map[string]interface{}{
	userSql, args := sql_aid.PgTable(TableByChatMessageLog).WhereIn("id", ids...).ToSql()
	userdata, _ := sql_aid.DataToMap(PgSql.Query(userSql, args...))
	return util.ArrayColumnByInt64(&userdata, "id")
}


